title: Application of TryParse in C#
body: <p>When 'val' below is not a <code>bool</code> I get an exception, I believe I can use <code>TryParse</code> but I'm not sure how best to use it with my code below. Can anyone help?</p>
  
  <pre><code>checkBox.Checked = Convert.ToBoolean(val);
  </code></pre>
  
  <p>Thanks</p>