Replace ctypes.data_as call with ctypes.data
In some rare cases, calling ctypes.data_as(ctypes.c_void_p)
leads to a segmentation fault. Since we don't need reference counting on the pointers (they are only passed through), using ctypes.data
instead, suffices.