cast data to float