title: converting NSString to NSInteger in iOS
body: <p>I have a string as </p>
  
  <pre><code>NSString *milliSeconds=@"1413808458821";
  </code></pre>
  
  <p>I tried the following to convert it to number, but None of them are giving correct value.</p>
  
  <pre><code>NSInteger number = [milliSeconds intValue];
  
  NSInteger number = [milliSeconds integerValue];
  
  NSInteger number = [milliSeconds longLongValue];
  </code></pre>
  
  <p>Please help me.
  Thanks in advance.</p>