effect-io-ai

Package: effect
Module: Function

Function.cast

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

Signature

declare const cast: <A, B>(a: A) => B

Source

Since v4.0.0