Add support for type coercion