pub trait ToF64 { // Required method fn to_f64(self) -> f64; }
Helper trait for converting to f64 - matching C++ static_cast behavior