title: convert NSDictionary's key into an NSNumber
body: <p>How can i convert the key to an NSNumber? this code gives me the error:</p>
  
  <p>no matter how i try it, i always end up with the error: Incompatible integer to pointer conversion assigning to 'NSNumber' from 'NSIntegar' (aka 'int').</p>
  
  <pre><code>        for (id key in consultants)
      {
          consultantData = [[ConsultantData alloc] init];
  
          consultantData.name = [consultants objectForKey:key];
          consultantData.conID = [[NSNumber numberWithInteger:key] integerValue];
  
          NSLog(@"name: %@    ID: %@", consultantData.name, consultantData.conID);
  
          [consultantList addObject:consultantData];
          [consultantData release];
      }
  </code></pre>
  
  <p>here is my object ConsultantData:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface ConsultantData : NSObject 
  {
      NSString *name;
      NSNumber *conID;
  }
  
  @property (nonatomic, retain) NSString *name;
  @property (nonatomic, retain) NSNumber *conID;
  
  @end
  
  #import "ConsultantData.h"
  
  
  @implementation ConsultantData
  
  @synthesize name;
  @synthesize conID;
  
  -(void) dealloc
  {
      [name release];
      [conID release];
  
      [super dealloc];
  }
  
  @end
  </code></pre>
  
  <p>if i try isMemberOfClass, it never returns true. if i try isKindOfClass, it tells me its a NSString.</p>
  
  <p>consultants is a dictionary i receive from my sever that passes thru an XMLRPC function (server is PHP). from what i've seen, everything is a string in the server dictionary returns.</p>