Bug fix for casting floats.