I\'m trying to convert an argument of my PowerShell script to a boolean value. This line
[System.Convert]::ToBoolean($a)
works fine as long
$a = 'bla' $a = ($a -eq [bool]::TrueString).tostring() $a False