title: Convert Y/N values of razor html checkbox in MVC
body: <p>Im reading a Y/N value from my model in a razor for loop.</p>
  
  <p>I want to change the value from Y/N to true/false.</p>
  
  <pre><code>&lt;td&gt;@Html.CheckBoxFor(modelItem =&gt; (item.ReqDowngrade == "Y" ? true : false))&lt;/td&gt;
  </code></pre>
  
  <p>I keep geting this error: System.InvalidOperationException: 'Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.'</p>
  
  <p>Is there any way I can do this without creating a server view model?</p>