Fix incorrect variable name in toFloat method