Update transmute and forget to use std::mem instead of std::cast

Rust recently removed the `cast` and shifted its methods to the `mem` module. (mozilla/rust@f94d671bfae5d8e9a4a4add310b1c40af0ab62a6) This PR updates those references so rust-sfml builds again.