'Convert IntEnum members to plain integers.'

def can_convert_to(self, typingctx, other):

    if issubclass(self.instance_class, enum.IntEnum):
        conv = typingctx.can_convert(self.dtype, other)
        return max(conv, Conversion.safe)
