@lower_cast(types.IntEnumMember, types.Integer)
def int_enum_to_int(context, builder, fromty, toty, val):
 return context.cast(builder, val, fromty.dtype, toty)

@ lower_cast ( types . IntEnumMember , types . Integer ) def int_enum_to_int ( context , builder , fromty , toty , val ) : return context . cast ( builder , val , fromty . dtype , toty )
convert an intenum member to its raw integer value .