ObjectCast extension

on

Methods

cast<T>() → T

Available on Object, provided by the ObjectCast extension

Cast the object to the type specified
castOrNull<T>() → T?

Available on Object, provided by the ObjectCast extension

Cast the object only if it is the type specified if it's not, just return null
isThis<T>() bool

Available on Object, provided by the ObjectCast extension

Determines if the object is the type specified