title: How to convert from string over to bool
body: <p>I have the following code, that when run, saves a string value True as seen here: 
  <a href="https://i.stack.imgur.com/CSn9w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CSn9w.png" alt="enter image description here"></a></p>
  
  <p>Here is the code:</p>
  
  <pre><code>currentSetting = AppSession.Repository.Settings.Find(SettingQuery.ID == new ID("IsUsersLockedOut"));
              currentSetting[0].Value = true.ToString(); 
              AppSession.Repository.Settings.Save(currentSetting[0]);
  </code></pre>
  
  <p>My question today is how would I be able to get a boolean value back instead of the string value, the expected result should be when saved, the value == 1, instead of a string true in the picture above. Thank you all. </p>