cast<T> function

T cast<T>(
  1. Object input
)

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;