Conversion bool from a string in C#

var str = "true";
var boolValue = bool.Parse(str);
//boolValue is True