title: Custom function when using a class as a boolean?
body: <p>Is there anyway to make is so that I can say something like</p>
  
  <pre><code>if(boolClass) {}
  </code></pre>
  
  <p>Where the boolClass is calling a contained function. Kinda like an overloaded bool operator or something.</p>
  
  <p>Thanks for any help.</p>