castElement method
Implementation
N castElement(num n) {
if (N == int) {
return n.toInt() as N;
} else {
return n.toDouble() as N;
}
}
N castElement(num n) {
if (N == int) {
return n.toInt() as N;
} else {
return n.toDouble() as N;
}
}