title: Int or NSInteger as object for method argument. Objective-C
body: <p>I'm having some trouble passing a number as an argument for a method:</p>
  
  <pre><code>- (void)meth2:(int)next_int;
  </code></pre>
  
  <p>And to call that method I need this:</p>
  
  <pre><code>int next_int = 1;
  [self performSelectorOnMainThread:@selector(meth2:) withObject:next_int waitUntilDone:NO];
  //update next_int and call meth2 again
  </code></pre>
  
  <p>at this point, I get a "pointer from integer without a cast" error and would happen the same with a <code>NSInteger</code>. An <code>NSNumber</code> is not useful because it's immutable and I need to change the value constantly.
  Any idea how can I do this?</p>
  
  <p>Thanks.</p>