cast<T> function
Casts input as type T.
Throws an exception if input is not of type T.
Implementation
T cast<T>(final Object input) => input as T;
Casts input as type T.
Throws an exception if input is not of type T.
T cast<T>(final Object input) => input as T;