• Forces the specified value to be the specified type T to get around annoying TypeScript idiosyncrasies.

    Type Parameters

    • T

      Type to cast specified value as.

    Parameters

    • value: any

      Value to cast to T.

    Returns T

    The specified value as type T.