def can_convert_to(self, typingctx, other):
        """
        Convert IntEnum members to plain integers.
        """
        if issubclass(self.instance_class, enum.IntEnum):
            conv = typingctx.can_convert(self.dtype, other)
            if conv:
                return max(conv, Conversion.safe)

        Convert IntEnum members to plain integers.
        
numba/core/types/old_scalars.py