Sorry to ask, but after reading through the documentation, I did not find any example about casting a pointer to an integer. Would you please show me ?
I don’t know if this is correct. Could you create a 4 byte long memory block with the pointer and then retrieve the value?
Something like (untested):
Dim mb as New MemoryBlock(4)
mb=myPointer //I am not sure about this step, but there seems to be some implicit conversion between MB and Ptr
MyInteger=mb.Int32Value(0)