Library API
    Preparing search index...

    Function cast

    • Ergonomically coerces any runtime value to type T, eliminating as unknown as T / as any as T double-assertions.

      Type Parameters

      • T = any

      Parameters

      • value: any

        The value to cast

      Returns T

      The value typed as T

      const instance = cast<Ticker.Instance>(proxy);