Hi there, have had a look around and can’t seem to...
# kotlin-native
m
Hi there, have had a look around and can’t seem to find the recommended solution to this. If I am calling an obj-C function from native, and this function returns a List<*>, (due to limited generics in obj-C), how might I cast to a DoubleArray if I know the type in the collection?
r
Probably
(x as List<Double>).toDoubleArray()
You can't cast a list directly to an array
m
Will have a go at that thanks!