to<R extends num> method
R
to<R extends num>()
Implementation
R to<R extends num>() =>
switch (R) {
const (int) => toInt(),
const (double) => toDouble(),
const (num) || _ => this,
}
as R;