castTo<E, T> method

E castTo<E, T>(
  1. E toe(
    1. T e
    )
)

Implementation

E castTo<E, T>(E Function(T e) toe) {
  return toe(cast<T>());
}