title: Type Cast UIView Warning
body: <p>I keep getting a warning that the UIView may not respond to selectedSegmentIndex.  I tried type casting, but I could not get rid of the warning.  I'm assuming I did the cast incorrectly.</p>
  
  <p>What is the proper way to type cast this, to avoid the warning?</p>
  
  <pre><code>- (IBAction)segmentedControlIndexChanged:(id)sender
  {    
      switch ([[[[self.view viewWithTag:100] viewWithTag:202] viewWithTag:203] selectedSegmentIndex]) {
  
          case 0:
              // code here
              break;
          case 1:
              // code here
              break;
          default:
              break;
      }
  }
  </code></pre>