title: How to cast Object to boolean?
body: <p>How can I cast a Java object into a boolean primitive </p>
  
  <p>I tried like below but it doesn't work</p>
  
  <pre><code>boolean di = new Boolean(someObject).booleanValue();
  </code></pre>
  
  <blockquote>
    <p>The constructor Boolean(Object) is undefined</p>
  </blockquote>
  
  <p>Please advise.</p>