Make data type coercion reusable.