title: Having trouble converting NSString containing number won't convert to integer
body: <p>I have the following line of code:</p>
  
  <pre><code>NSString *dMidiInfo = [object valueForKey:@"midiInformation"];
  </code></pre>
  
  <p>That returns this from the debugger:</p>
  
  <p>{type = immutable, count = 1, capacity = 3, pairs = (
      3 : {contents = "192"}</p>
  
  <p>from this log statement <code>NSLog(@"this is the string:  %@",dMidiInfo);</code> </p>
  
  <p>I get this :
  {(
      192
  )}</p>
  
  <p>but when this line executes:</p>
  
  <pre><code>firstByteB = [dMidiInfo intValue];
  </code></pre>
  
  <p>I get this error:</p>
  
  <p>[NSCFSet intValue]: unrecognized selector sent to instance 0x176f10</p>
  
  <p>Are the brackets messing my code up?</p>
  
  <p>After some additional troubleshooting:
  This code actually worked with a fetch request with this code:</p>
  
  <pre><code>NSFetchRequest *request = [[NSFetchRequest alloc] init];
  NSEntityDescription *entity = [NSEntityDescription entityForName:@"Effect" inManagedObjectContext:context];
  [request setEntity:entity];
  NSError *error;
  NSMutableArray *mutableFetchResults = [[context executeFetchRequest:request error:&amp;error] mutableCopy];
  </code></pre>
  
  <p>This returned all of the entities, I was trying to return one entity so I switched to this:</p>
  
  <p>NSArray *currentSelSong = [sillySongs selectedObjects];
      NSMutableArray *mutableFetchResults = [currentSelSong valueForKey:@"songToEffect"];</p>
  
  <p>It seems that the selectedObjects adds the brackets</p>