Implementing type coercion.