No need for cast::transmute

Plain casts work as well with raw pointers.