Updated to latest Rust: std::cast::transmute -> std::mem::transmute