Function cast

  • Performs a cast at from theObject to the targetClassType. If theObject is not an instance of the targetClasstype the function will return null.

    Type Parameters

    • T

    Parameters

    • theObject: any
    • targetClassType: ClassOf<T>

    Returns T | null