How to convert intArray to ArrayList<Int> in Kotlin?
<p>From</p>

<pre><code>val array = intArrayOf(5, 3, 0, 2, 4, 1, 0, 5, 2, 3, 1, 4)
</code></pre>

<p>I need to convert to <code>ArrayList&lt;Int&gt;</code></p>

<p>I have tried <code>array.toTypedArray()</code></p>

<p>But it converted to <code>Array&lt;Int&gt;</code> instead</p>