'Convert the given Python integer to a void*.  This is recommended
over number_as_ssize_t as it isn\'t affected by signedness.'

def long_as_voidptr(self, numobj):

    fnty = Type.function(self.voidptr, [self.pyobj])
    fn = self._get_function(fnty, name='PyLong_AsVoidPtr')
    return self.builder.call(fn, [numobj])
