title: How to check bool value from an array of NSDictionary
body: <p>I am looping through an <code>NSArray</code> of <code>NSDictionaries</code>, I am then wanting to use one of the values in the <code>NSDictionary</code> which is of type <code>BOOL</code> for an if statment.. but I am having some trouble doing this.</p>
  
  <p>This is what my <code>for loop</code> looks like</p>
  
  <pre><code>for(NSDictionary *dict in arrayOfDictionaries)
      {
          NSNumber *boolCheck = [dict objectForKey:@"ISREADY"]; // isReady is the bool value which is either 0 or 1
  
          if (boolCheck == [NSNumber numberWithBool:YES]) {
  
  //...
     }
  }
  </code></pre>
  
  <p>What is happening is it loops through my array but never meets the condition of my if statement even though i am 100% sure there are values of this type in the array... and alot of them for that matter.</p>
  
  <p>Any help would be appreciated.</p>