Check out example codes for "how to convert string to bool c#". It will help you in understanding the concepts better.
Code Example 1
bool b = str == "1";
Code Example 2
string sample = "True";
bool myBool = bool.Parse(sample);
///or
bool myBool = Convert.ToBoolean(sample);
Learn ReactJs, React Native from akashmittal.com