title: How to convert NSArray to integer values
body: <p>In my iPhone by applying below code I am able to get value of "i"</p>
  
  <pre><code>NSMutableArray *Array = [NSMutableArray arrayWithCapacity:100];
  
  for (NSUInteger i = 0; i &lt; 10; i++) {          
      id a = [NSDecimalNumber numberWithDouble:i];
      [Array addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:a, @"a", nil]];
   }
  </code></pre>
  
  <p>But if I want to get value from array like as an example</p>
  
  <pre><code>NSArray * numberArray = [[NSArray alloc] initWithObjects:@"0.1",@"0.2",@"0.5",nil];
  </code></pre>
  
  <p>and then if I want to use it as</p>
  
  <pre><code>NSMutableArray *Array = [NSMutableArray arrayWithCapacity:100];
  
  for (NSUInteger i = 0; i &lt; 10; i++) {          
      id a = [NSDecimalNumber numberWithDouble:[numberArray objectAtIndex:i]];
      [Array addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:a, @"a", nil]];
   }
  </code></pre>
  
  <p>How can I do this?</p>