title: how to convert a string to a bool
body: <p>I have a <code>string</code> that can be either "0" or "1", and it is guaranteed that it won't be anything else.</p>
  
  <p>So the question is: what's the best, simplest and most elegant way to convert this to a <code>bool</code>?</p>