Why are you typecasting twice? O is already defined as an /obj/item