How to add element to a generic collection
<p>I am wondering how to add a specialized object to a generic collection</p>

<p>I am using the following code</p>

<pre><code>Collection&lt;T&gt; c;
Class1 object1 = new Class1()
c.add((T)object1)
</code></pre>

<p>Is this the correct way?</p>
