Cast numeric value to float.