title: Convert Int to UInt32 in Swift
body: <p>Im making a Tcp client and therefore using the <code>CFStreamCreatePairWithSocketToHost</code> which is expecting an UInt32 for the second parameter.</p>
  
  <p>Here is a sample of what I'm trying to do.:</p>
  
  <pre><code>func initNetwork(IP: String, Port: Int) {
      // relevant stuff
  
      //Convert Port:Int to UInt32 to make this shit work!
  
      CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, IP as NSString , Port , &amp;readStream, &amp;writeStream)
  
      // Irelevant stuff
  }
  </code></pre>
  
  <p>I have been looking around for a solution for some time now, and i can't seem to find one!</p>