title: How to get bool value from ViewBag on view?
body: <p>I am trying to receive bool values from ViewBag.</p>
  
  <p>But the issue is that to receive value I am using:</p>
  
  <pre><code>var test = '@ViewBag.Test'
  </code></pre>
  
  <p>In this way value will be <code>'True'</code> or <code>'False'</code> (string). Of cource I can use something like <code>if (test == 'True')</code> but, is there a way to get from ViewBag bool value dirrectly, or at least convert it?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I need to get ViewBag value in javascript part.</p>