How to check if an object is type of Class c?
<p>I'm trying to do the following but it won't compile and keep saying "bo instanceOf T" is incompatibility</p>

<pre><code>public retur boolean (BaseObject bo,String text, Class&lt;?&gt; T){
    return (bo.getText().equals(text) &amp;&amp; bo instanceOf T)

}
</code></pre>

<p>I'm trying to ensure the get is the same and bo must be type of T.</p>

<p>oh yes how do I make sure the "T" extends BaseObject?</p>
