pub fn to_float(val: ObjectRef) -> RuntimeResult<f64>