Replace .to_struct with .double