title: Out-projected type 'ArrayList<*>' prohibits the use of 'public open fun add(index: Int, element: E): Unit defined in java.util.ArrayList'
body: <p>I have this snippets:</p>
  
  <pre><code>class RecyclerViewAdapter internal constructor(
      val clazz: Class&lt;out RecyclerViewViewHolder&gt;,
      val layout: Int,
      var dataList: MutableList&lt;*&gt;)
  ...
  ...
  ...
  fun RecyclerView.getDataList() : ArrayList&lt;*&gt; {
    return (adapter as RecyclerViewAdapter).dataList as ArrayList&lt;*&gt;
  }
  ...
  ...
  ...
  </code></pre>
  
  <p>then I use that on this:</p>
  
  <pre><code>recyclerView.getDataList().add(Person("Lem Adane", "41 years old", 0))
  </code></pre>
  
  <p>but I get this error:</p>
  
  <pre><code>Error:(19, 31) Out-projected type 'ArrayList&lt;*&gt;' prohibits the use of   
  'public open fun add(index: Int, element: E): Unit defined in  
  java.util.ArrayList'
  </code></pre>