CastUtil extension

on

Methods

as<T>() → T?
Casts the receiver object to the given type T or returns null otherwise.