Remove std::cast::transmute_immut_unsafe

Remove std::cast::transmute_immut_unsafe.
It can be done in safe code using `as *T`.