title: Incompatible pointer to integer conversion sending 'id' to parameter of type 'int'
body: <p>I guess it's really simple but I can't find the way to work this out...</p>
  
  <p>I have a method like this</p>
  
  <pre><code>- (int)showQuestionMethod:(int)number;
  </code></pre>
  
  <p>I'm creating NSMutableOrderedSet in loop like this which works fine.</p>
  
  <pre><code>while (count &lt; numberOfQuestionsInTest) {
      randomQuestionNumber = 0 + arc4random() % (numberOfQuestions - 0);
      [_randomQuestionNumberArray addObject:[NSDecimalNumber numberWithInt:randomQuestionNumber]];
       count = [_randomQuestionNumberArray count];
  }
  </code></pre>
  
  <p>Then when I want to call a method with this line  and I get an error (Incompatible pointer to integer conversion sending 'id' to parameter of type 'int')</p>
  
  <pre><code>int showQuestion = 0;
  [self showQuestionMethod:_randomQuestionNumberArray[showQuestion]];
  </code></pre>
  
  <p>Can anyone offer solution? Thank you!</p>