Convert Array to List in Kotlin
Kotlin support in the standard library this conversion.
You can use directly
disableNos.toList()
or if you want to make it mutable:
disableNos.toMutableList()
This will fix your problem :
val disabledNos = intArrayOf(1, 2, 3, 4)
var integers = Arrays.asList(*disabledNos)
Just add * to this to asList