title: incompatible pointer to integer conversion assigning to 'NSInteger' (aka 'int')
body: <p>Using a UISegmentedControl, I am getting the error suggested in the Title for the last line of this code.</p>
  
  <pre><code>- (IBAction)segmentAction:(id)sender
  {
      //NSLog(@"segmentAction: selected segment = %d", [sender selectedSegmentIndex]);
      NSArray *speeds = @[@1.25, @1.5, @2.0];
      speed = [speeds objectAtIndex:[sender selectedSegmentIndex]];
  }
  </code></pre>
  
  <p>The declaration for <code>speed</code> is <code>NSInteger speed;</code>.</p>
  
  <p>Can you help with the raised issue, please?</p>