Im making a Tcp client and therefore using the CFStreamCreatePairWithSocketToHost which is expecting an UInt32 for the second parameter.
CFStreamCreatePairWithSocketToHost
Here is a sample of
You can do it easily:
var x = UInt32(yourInt)