Add test for cast to float