Java equivellent c# implicit
<p>I have an object A  </p>

<pre><code>class A {
    B contained = new B();
}

class B
{
}
</code></pre>

<p>and a collection of A's  </p>

<pre><code>Queue&lt;A&gt; q1 = new PriorityQueue&lt;A&gt;();  
</code></pre>

<p>what I want to do  </p>

<pre><code>Queue&lt;B&gt; q2 = new PriorityQueue&lt;B&gt;(q1);
</code></pre>

<p>in c# i can use the implicit keyword, is there an equivelent?</p>
