title: Type mismatch: cannot convert from ArrayList<Data> to MyCollection
body: <p>I've read similar questions here but I'm still a little confused.</p>
  
  <pre><code> MyCollection extends ArrayList&lt;MyClass&gt;
  
   MyClass implements Data
  </code></pre>
  
  <p>yet this gives me the "cannot convert from ArrayList to MyCollection"</p>
  
  <pre><code> MyCollection mycollection = somehandler.getCollection();
  </code></pre>
  
  <p>where getCollection looks like this</p>
  
  <pre><code> public ArrayList&lt;Data&gt; getCollection()
  </code></pre>
  
  <p>So my assumptions are obviously wrong. How can I make this work like I would like it to</p>