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
The method you want is toInt() -- you have to be a little careful, since the toInt() returns an optional Int.
let stringNumber = "1234"
let numberFromString = stringNumber.toInt()
// numberFromString is of type Int? with value 1234
let notANumber = "Uh oh"
let wontBeANumber = notANumber.toInt()
// wontBeANumber is of type Int? with value nil