code: func LongPolicy(n interface{}) *types.LongPolicy {
  	lp := &types.LongPolicy{}
  	switch v := n.(type) {
  	case int:
  		lp.Value = int64(v)
  	case int8:
  		lp.Value = int64(v)
  	case int16:
  		lp.Value = int64(v)
  	case int32:
  		lp.Value = int64(v)
  	case uint:
  		lp.Value = int64(v)
  	case uint8:
  		lp.Value = int64(v)
  	case uint16:
  		lp.Value = int64(v)
  	case uint32:
  		lp.Value = int64(v)
  	case int64:
  		lp.Value = v
  	default:
  		panic(fmt.Errorf("non-convertible type %T for value", n))
  	}
  	return lp
  }
docs: // LongPolicy converts a supported number into a VMware LongPolicy value. This
  // will panic if there is no implicit conversion of the value into an int64.