This is not quite safe. ``PyLong_AsLong`` will return `-1` and raise an overflow error if it can't be converted. So, this clause will require extra type checking.