What happens is that "mystring".toCharArray() returns a CharArray but I need an Array<Char>.
- Why
CharArrayexists? what's the idea behind it? - How can I cast a
CharArraytoArray<Char>?
I found one way to make it Array<Char>
"mystring".toCharArray().map { it }.toTypedArray()
but is there any other way to do it?