cast to float with conversion