castStablePtrToPtr

castStablePtrToPtr :: StablePtr a -> Ptr ()
base Foreign.StablePtr
Coerce a stable pointer to an address. No guarantees are made about the resulting value, except that the original stable pointer can be recovered by castPtrToStablePtr. In particular, the address may not refer to an accessible memory location and any attempt to pass it to the member functions of the class Foreign.Storable.Storable leads to undefined behaviour.