title: Java - is an array of type Class<? extends MyType> possible?
body: <p>I've just been diving into Java generics and have come across something puzzling. I have a List of Class objects. These Class objects are of classes that extend the class MyType. What I want to do is the following:</p>
  
  <pre><code>Class&lt;? extends MyType&gt;[] myArray = myList.toArray( Class&lt;? extends MyType&gt;[] );
  </code></pre>
  
  <p>Now I know this won't work. But how is it possible to create such an array? My trouble is that I need to pass this List as a Class array to a method. I'd rather avoid @SuppressWarnings and figure out if it's possible.</p>