@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.
dataset/ETHPy150Open numba/numba/numba/targets/enumimpl.py/int_enum_to_int