toIntArray
fun Array<out Int>.toIntArray(): IntArray
Returns an array of Int containing all of the elements of this generic array.
fun Collection<Int>.toIntArray(): IntArray
Returns an array of Int containing all of the elements of this collection.