title: How to cast sockaddr_in to sockaddr in swift 2.0?
body: <p>I saw the question here :
  <a href="https://stackoverflow.com/questions/24939431/how-to-cast-sockaddr-in-to-sockaddr-in-swift">cast-sockaddr-in-to-sockaddr-in-swift 1.2</a>   </p>
  
  <p>But when I try to use these code in swift 2.0, I got an error:    </p>
  
  <pre><code>var sa = sockaddr_in()
  let s =  socket(PF_INET,SOCK_STREAM,0)
  
  let cn = connect(s,UnsafeMutablePointer( &amp;sa ), sizeof(sa) )
  </code></pre>
  
  <blockquote>
    <p>Ambiguous use of 'init'    </p>
  </blockquote>
  
  <p>How to fix this problem?</p>