title: IntArray vs Array<Int> in Kotlin
body: <p>I'm not sure what the difference between an <code>IntArray</code> and an <code>Array&lt;Int&gt;</code> is in Kotlin and why I can't used them interchangeably:</p>
  
  <p><a href="https://i.stack.imgur.com/rwdMu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rwdMu.png" alt="missmatch"></a></p>
  
  <p>I know that <code>IntArray</code> translates to <code>int[]</code> when targeting the <code>JVM</code>, but what does <code>Array&lt;Int&gt;</code> translate to?</p>
  
  <p>Also, you can also have <code>String[]</code> or <code>YourObject[]</code>. Why Kotlin has classes of the type <code>{primitive}Array</code> when pretty much anything can be arranged into an array, not only primitives.</p>