kaven-basic - v6.0.0
    Preparing search index...

    Function ConvertTo

    • Casts a given value to the specified type.

      Type Parameters

      • T = any

      Parameters

      • val: unknown

        The value to be cast.

      Returns T

      The value cast to type T.

      This function performs a type assertion and does not perform any runtime type checking. Use with caution, as incorrect usage may lead to runtime errors.

      2.0.11

      2021-02-01