Support cast string to float and Float class. Added test.