title: Convert MVC ViewBag property to lowercase
body: <p>I'm trying to use a Boolean MVC ViewBag property that is being set in a controller inside of a javascript if statement. However, there is a problem being introduced because the property value gets converted to Pascal case. For example, "true" becomes "True" and "false" becomes "False".</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var error = @ViewBag.Dropped;
      if ( error ) {
          $( '#alert-message' ).addClass('alert-success alert-dismissable');
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I ensure that the property gets converted to lowercase. I've tried to use javascript function .toLowerCase() and was unsuccessful. </p>