var myStringBool = "True"; var myVar = myStringBool.AsBool();