using System;var str = "true";var boolValue = bool.Parse(str);//boolValue is TrueConsole.WriteLine(boolValue);