ObjectExtensions extension

Helper methods for object casting.

on

Methods

as<X>() → X
Cast this object as X.
asOrNull<X>() → X?
Cast this object as X or null.