title: Convert string value "$false" to boolean variable
body: <h1>Reason I'm Doing This</h1>
  <p>I'm trying to set a token in a file I have. The contents of the token is 1 line in the file, and it's string value is <code>$token=$false</code></p>
  <h1>Simplified to test code</h1>
  <p>When I try to convert this token into a bool value, I'm having some problems. So I wrote test code and found I'm not able to convert the string to a bool value.</p>
  <pre><code>[String]$strValue = &quot;$false&quot;
  [Bool]$boolValue = $strValue
  
  Write-Host '$boolValue =' $boolValue
  </code></pre>
  <p>This gives the following error...</p>
  <pre><code>Cannot convert value &quot;System.String&quot; to type &quot;System.Boolean&quot;, parameters of this type only accept booleans or numbers, use $true, $false, 1 or 0 instead.
  At :line:2 char:17
  +   [Bool]$boolValue &lt;&lt;&lt;&lt;  = $strValue
  </code></pre>
  <p>As you can see, I am using the <code>$false</code> value as is suggested by the error message, but it's not accepting it. Any ideas?</p>