SQL ID to Int32 - there has to be a quicker way (Swift)

110 views Asked by At

Trying to turn a record ID into an Int32 and ending up with a verbose three line/layer trick to achieve the obvious. There must be a shorter way. Can someone put me out of my misery?

var XX = resultSet.stringForColumn("ID")
var XXX = XX.toInt()
recordNumberBack = Int32(XXX!)
0

There are 0 answers