title: convert NSNumber to BOOL objective C
body: <p>I want to convert integers <code>0</code> and <code>1</code> to BOOLEAN  <code>YES</code> and <code>NO</code></p>
  
  <p>My code:</p>
  
  <pre><code>    NSNumber *num = 0;
      BOOL myBool = [num boolValue];
      NSLog(@"bool is: %@",myBool);
  </code></pre>
  
  <p>It gives output as <code>(null)</code></p>
  
  <p>What could be wrong?</p>