either change the parameter to be `obj/item/I`, or change the istype to `if(istype(C))`
preferably the former