title: issue with checkbox display on Razor view
body: <p>In my model i have the following property.</p>
  
  <pre><code>public bool? ShowDocumentNumber { get; set; }
  </code></pre>
  
  <p>when i try to show it on the razor view</p>
  
  <pre><code>@Html.CheckBoxFor(model =&gt;model.ShowDocumentNumber)
  </code></pre>
  
  <p>I get the following error.</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'bool?' to 'bool'. An explicit
    conversion exists (are you missing a cast?)</p>
  </blockquote>
  
  <p>when i try to cast it </p>
  
  <pre><code>@Html.CheckBoxFor(model =&gt;bool.Parse(model.ShowDocumentNumber.ToString()))
  </code></pre>
  
  <p>i get the following error at run time.</p>
  
  <blockquote>
    <p>Templates can be used only with field access, property access,
    single-dimension array index, or single-parameter custom indexer
    expressions.</p>
  </blockquote>
  
  <p>How can i display the checkbox on the razor view?</p>