From a book on Scala:
“In Scala, there is no need for wrapper types. It is the job of the Scala compiler to convert between primitive types and wrappers. For example, if you make an array of Int, you get an int array in the virtual machine.”
But why do we need to convert to int array?