add type coercion to active mock