title: Get a Boolean value from an Object class in Java Using Java 8
body: <p>I am in search for the best approach to get a boolean value in Object class in Java8. The Object class structure is as follows.</p>
  
  <pre><code>class Object {
      boolean status;
      String name;
      // getters and setters
  }
  
  Object obj = getObjectValue();
  </code></pre>
  
  <p><code>getObjectValue()</code> returns object. Whats the best approach, if I have to get status value in boolean.</p>