So I can do this:
var stringNumb: NSString = \"1357\" var someNumb: CInt = stringNumb.intValue
But I can\'t find the way to do it w/ a
A more general solution could be a extension
extension String { var toFloat:Float { return Float(self.bridgeToObjectiveC().floatValue) } var toDouble:Double { .... } .... }
this for example extends the swift native String object by toFloat