title: Getting Index of an Object from NSArray?
body: <p>i am trying to get index of an array through <strong>indexOfObject</strong> method as follows but when i try to log the value to test the index i get a garbage value.. for testing purposes i am having an array with values <code>{57,56,58..}</code> to get an index of lets say <code>56</code>,</p>
  
  <pre><code>NSNumber *num = [NSNumber numberWithInteger:56];
  NSInteger Aindex = [myArray indexOfObject:num];
  NSLog(@" %d",Aindex);
  </code></pre>
  
  <p>the value i get is something like <code>2323421</code>. what am i possibly doing wrong??</p>