Throw a type error if the incorrect method is passed to Cache put()/add()/addAll().