title: System.FormatException: String was not recognized as a valid Boolean
body: <p>I am working on an ASP.NET MVC webform and attempting to get the value of the checkbox checked by the user. When running the application an exception is thrown and server error is diplayed on following line of code from the controller: </p>
  
  <pre><code> supp = Convert.ToBoolean(checksupp);
  </code></pre>
  
  <p>I have run visual studio on debug mode and the checkbox value is getting passed but is showing the following exception :</p>
  
  <blockquote>
    <p>String was not recognized as a valid Boolean. </p>
  </blockquote>
  
  <p>The models, views and controllers are shown below and not sure how to resolve this issue. </p>
  
  <p>Model </p>
  
  <pre><code>public class WebFormXML{
  
    private List&lt;string&gt; suppressions;
  
      public WebFormXML()
      {
          suppressions = new List&lt;string&gt;();
      }
  
       public List&lt;string&gt; Suppressions
      {
          get { return suppressions; }
          set { suppressions = value; }
      }
  
  {
  </code></pre>
  
  <p>View </p>
  
  <pre><code> &lt;input type="checkbox" groupname="suppressions" name="suppressions" id="supp1" value="Prepayments" runat="server" /&gt;
  </code></pre>
  
  <p>Controller </p>
  
  <pre><code>  [HttpPost]
    public ActionResult createXML(FormCollection collection)
    WebFormXML wfx = new WebFormXML();
     string checksupp = collection["suppressions"];
     bool supp = true;
     supp = Convert.ToBoolean(checksupp);
     wfx.Suppressions.Add(checksupp);
  </code></pre>