UpdateCastsAgainstCgfloat

Update the way of cast against CGFloat for beta 4.