title: What is the typecast of an element created with componentsSeparatedByString?
body: <p>I need to extract some info from a number of strings in infoArray. The layout for each element in infoArray looks like @"NO,YES,YES,YES,YES,NO,NO,YES", etc.</p>
  
  <p>When I use the following:</p>
  
  <pre><code>[splitArray setArray:[[infoArray objectAtIndex: i] componentsSeparatedByString:@","]];
  </code></pre>
  
  <p>I can access whatever I need in the new splitArray with something like:</p>
  
  <pre><code>NSLog(@"Result = %@", [infoArray objectAtIndex: 0]);
  </code></pre>
  
  <p>and in this case it will print out correctly. The problem is when I need to use it next for conditions:</p>
  
  <pre><code>if([infoArray objectAtIndex: 0] == @"YES"){
      //do something
  }
  </code></pre>
  
  <p>The above code obviously doesn't work even if the value was "YES".  I believe the typecast is wrong.  I'm a bit of a newbie.  Any suggestions? </p>