Ensure the numbers are cast correctly