rendy_util
pub fn cast_vec<T: Copy>(vec: Vec<T>) -> Vec<u8>
Cast vec of some arbitrary type into vec of bytes. Can lead to UB if allocator changes. Use with caution. TODO: Replace with something safer.