title: Using an int as an NSDictionary key?
body: <p>I'm trying to access my dictionary object. Here's my code:</p>
  
  <pre><code>int tag = object.tag;
  CGPoint point = [[self.dict objectForKey:tag] CGPointValue];
  </code></pre>
  
  <p>The problem is objectForKey is supposed to take an Objective-C object, not an int. I tried wrapping tag into an NSNumber with <code>[NSNumber numberWithInt:tag]</code> and passing that into <code>objectForKey:</code> but it returns a null object.</p>
  
  <p>Any ideas? Thanks</p>