Return null for parse failures in toFloat/toInt