convertArray static method
Converts an array to a specific type.
Implementation
static List<num> convertArray(List<num> array, String type, [bool forceClone = false]) {
if(!forceClone && type == 'List<num>'){
return array;
}
if (type == 'List<num>') {
// create typed array
return List<num>.from(array);
}
return array.sublist(0);//slice(array, 0); // create Array
}