title: How do I pull an integer out of a NSDictionary and put it in an integer?
body: <p>I've got an NSDictionary that was initialized with a plist that, among other things, contained count followed by 32 and I want to get at the value for count.</p>
  
  <p>How?</p>
  
  <p>I know how to get it into an object via </p>
  
  <pre><code>[dictionaryObjectName objectForKey:@"count"]
  </code></pre>
  
  <p>But to me, the value I'm obtaining is not an object.</p>
  
  <p>If I have to specify an object, what would be the best one to use (FYI the value will always be unsigned) and I need to get it into a true int.</p>
  
  <p>Do I do something like</p>
  
  <pre><code>NSNumber *num = [dictionaryObjectName objectForKey:@"count"];
  int theValue = [num intValue];
  [num release];
  </code></pre>
  
  <p>Is the release on num a good thing to do since this for an iPhone with no garbage collector?</p>