title: how to convert the bool to nullable bool (bool?)
body: <p>i have a table provider with column  </p>
  
  <pre><code>                 implied(tiny int)(something like nullable bool)
                   providerid(int)
  </code></pre>
  
  <p>I have a form and i have check box </p>
  
  <p>I am doing winforms applications using c# ..</p>
  
  <p>i am using enitities and my dbcontext name is dbcontext</p>
  
  <p>How to covert  bool to nullable bool(bool?)   in C sharp.</p>
  
  <p>I have tried this way   </p>
  
  <pre><code>      if (chkbox.checked == true)
  
              bool yes = 0;
          else
  
            bool   yes = 1;
  
          dbcontext.implied = yes;
  </code></pre>
  
  <p>but got an error </p>
  
  <pre><code>Cannot convert bool to bool?
  </code></pre>