You could just use `ptr::read(src as *T as *U)`.