pub fn tof64<T>(s: &[T]) -> Vec<f64> where T: Copy, f64: From<T>,
Helper function to copy and cast entire &[T] to Vec. Like the standard .to_vec() method but also recasts to f64 end type