Added type conversions for enumerations