bool check(object)

Returns true if the given object is of type T.

Source

bool check(dynamic object) => object is T;