4/11/16It’s called a synechdoche. It’s allowed in casual and formal English. If you don’t realize it, retake tenth grade English.