vtils

Home > validator > yup > MixedSchema > cast

yup.MixedSchema.cast() method

Signature:

cast(value: T, options?: SchemaValidateOptions): any;

Parameters

Parameter Type Description
value T  
options SchemaValidateOptions (Optional)

Returns:

any