fixed check for CGFloat value type