title: Casting Y or N to bool C#
body: <p>Just for neatness sake I was wondering, whether it's possible to cast Y or N to a bool?  Something like this;</p>
  
  <pre><code>bool theanswer = Convert.ToBoolean(input);
  </code></pre>
  
  <p>The long version;</p>
  
  <pre><code>bool theanswer = false;
  switch (input)
  {
     case "y": theanswer = true; break;
     case "n": theanswer = false; break
  }
  </code></pre>