ptr = ToUserData(val)
#LIGHTUSERDATAwhich is used to store memory pointers. You could then pass this variable to a function which expects a
Note that this function is dangerous and should only be used by people who know what they are doing. Using pointers that point to unallocated address space can easily crash your script.
To convert a pointer of type
#LIGHTUSERDATA back into a number, use the
ToNumber() function. See ToNumber for details.