title: How to parse NSString into BOOL in Objective-C?
body: <p>I am programming in Objective-C for iOS. I would like to parse an object of type NSString into a scalar of type BOOL.</p>
  
  <p>I have a value, and I know that it will either be @"YES" or @"NO", but that YES (or) NO value is NSString and I just want to change NSString into BOOL.</p>
  
  <p>How can I do that?</p>
  
  <p>Please answer me if you know.</p>
  
  <p>Thanks for reading.</p>