toList

open fun <T> toList(items: Array<T>): List<T>
open fun <T> toList(items: Iterable<out T>): List<T>

Wraps the given items in a mutable list.