Package: effect
Module: Function
Returns the input value with a different static type.
When to use
Use when you need an explicit type-level cast and accept that the value is returned unchanged at runtime.
Gotchas
This is a type-level cast only; it performs no runtime validation or conversion.
See
satisfies for checking assignability without changing the resulting typeSignature
declare const cast: <A, B>(a: A) => B
Since v4.0.0