title: How to convert iOS id type which holds int to NSString?
body: <p>I have an <code>id</code> which holds an <code>int</code>. I need to cast it to an <code>NSString</code> and append it to another <code>NSString</code>.</p>
  
  <p>I've trued different approaches but I have different type of errors. My confusion is that <code>int</code> is not an object type.</p>
  
  <p>My code is:</p>
  
  <pre><code>NSString *str = [dict objectForKey:[NSNumber numberWithLongLong:ID]];
  </code></pre>
  
  <p>In this case I have <code>(int) 1000</code>. </p>
  
  <p>When I try to append it to <code>NSString</code> I get an exception.</p>
  
  <p>How can I properly cast from an <code>id</code>, which holds <code>int</code>, to <code>NSString</code> ?</p>