asLongArray
Returns an array of type LongArray, which is a view of this array where each element is a signed reinterpretation of the corresponding element of this array.
@ExperimentalUnsignedTypesinline fun ULongArray.asLongArray(): LongArray(source)
@OptIn(ExperimentalUnsignedTypes::class)
fun main() {
val uLongs: ULongArray = uLongArrayOf(10uL, 20uL, 30uL)
val longs: LongArray = uLongs.asLongArray()
println(longs.joinToString()) // prints: 10, 20, 30
}