Rename toDoubles to toPairs