The same thing as calling the type, but usable when the type arrives in a variable. Coercion happens only where nothing can be lost.
Arguments
- t
A type, or anything
as_type()accepts.- x
The value to validate.
The same thing as calling the type, but usable when the type arrives in a variable. Coercion happens only where nothing can be lost.
A type, or anything as_type() accepts.
The value to validate.