title: Error converting int into NSNumber
body: <p>I am fetching data from the web, and I am having problems with the numbers that are returned. For example, when the int 1 is returned from the server, and I try and convert that int to a NSNumber, the value of the NSNumber is 151241152. The number is slightly different every time, but it is always over 1 billion. Here is my code:</p>
  
  <pre><code>int agrees = (int)[info objectForKey:kWaveAgrees];
  wave.numberOfAgrees = [NSNumber numberWithInt:agrees];
  </code></pre>
  
  <p>Does anyone know why this is happening?</p>