Ensure runtime type safety and perform type coercion if needed.
github.com/cheton/ensure-type
cheton/ensure-type