your type cast from string to int is the problem. You cant use a type cast to extract the numeric value from a string object. You must convert it.
I am not so fit on Swift but code like this should do the job.
currentObject[0]!.toInt() let i:Int? = Int(currentObject[0]!)