title: How to test NSCFBoolean value?
body: <p>received data from JSON, which is looks like:</p>
  
  <pre><code>{
      myself = 1;
      "id" = 123;
  }
  </code></pre>
  
  <p>and I put it into a NSDictionary *messageDic, I also defined a value *isMyself to receive the value of myself</p>
  
  <pre><code>Boolean isMyself = [messageDic objectForKey:@"myself"];
  </code></pre>
  
  <p>but it does not work.</p>
  
  <p>So I print the date type, </p>
  
  <pre><code>const char* className = class_getName([[messageDic objectForKey:@"myself"] class]);
  NSLog(@"yourObject is a: %s", className);
  NSLog(@"Size of BOOL %d", sizeof(isMyself));
  NSLog(@"Size of BOOL %@", [messageDic objectForKey:@"myself"]);
  </code></pre>
  
  <p>the results are:</p>
  
  <pre><code>2012-08-01 17:41:48.886  yourObject is a: __NSCFBoolean
  2012-08-01 17:41:48.887  Size of BOOL 1
  2012-08-01 17:41:48.887  Size of BOOL 0
  </code></pre>
  
  <p>and the if section below also does not work.</p>
  
  <pre><code>if ([messageDic objectForKey:@"myself"] == 0)
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>NSCFBoolean *isMyself = [messageDic objectForKey:@"myself"];
  </code></pre>
  
  <p>I got error form above.</p>
  
  <p>my question is what should I do to test the value of <code>[messageDic objectForKey:@"myself"]</code>? and what is the <code>__NSCFBoolean</code>?</p>
  
  <p>Thanks!</p>