Define raw_pointer_cast for raw pointers
The function raw_pointer_cast
is not really useful since it only for GPU pointer types. So I would suggest to make a version for the regular pointers (that returns the same pointer). Otherwise we have to use a reinterpret_cast that needs to explicitly pass the type.