monkey:monkey.types.Variant.EnumValue
Gets the integer enum value of an enum variant.
The type of the variant must be an enum type, or a runtime error will occur.