For example, I have the following code:
let numberOfBlocks = 3 let blockWidth = SKSpriteNode(imageNamed: \"image.png\").size.width let padding =
using bridgeToObjectiveC() method you can call the methods provided in Objective - C to convert from one primitive data type to another for e.g.
variable_name.bridgeToObjectiveC().intValue
will convert that variable named variable_name to integer