When using enumeration on a property of a class, for example, and need to save the class values we may cast:
i = integer(globals.Fases.French)
then the integer may be saved to SQL or any other DDBB, but when loading an integer that must be converted to an enumeration is there a similar cast?
To avoid a method that converts the integer to the enumeration.