cast: Record<Metatype, ((value: any) => any)> = ...

Functions that perform conversion of arbitrary values to a metatype.

This is a "best effort" that ensures the value is an appropriate JS type but cannot ensure semantic validity in all cases.

UnsupportedCastError if the cast is deemed impossible