title: Convert String to UInt16 Objective-C
body: <p>I am facing the problem, that I can't convert an string or an int to an UInt16. This is my current code: <code>(UInt16)[[defaults stringForKey:@"port"] intValue]</code>  <code>[[defaults stringForKey:@"port"] intValue]</code> is <code>8080</code> and <code>(UInt16)[[defaults stringForKey:@"port"] intValue]</code> becomes <code>51075</code> which is wrong. Does anyone know to do this?</p>
  
  <p>Thanks for your help!</p>