chickadee » coerce » coerce

coerce OBJECT TYPE-TAG #!optional DEFAULT-PROCprocedure

Converts OBJECT to a value of TYPE-TAG.

DEFAULT-PROC is a procedure with the signature (OBJECT TYPE-TAG -> OBJECT) and is invoked when coercion fails. The default is to signal an error.

Recognized types are as for extended-type-of.