Metonymy

A Metonymy is a figure of speech where one replaces a main word with a word with a similar attribute. Example: The pen is mightier than the sword (Obviously, a pen will not win in a fight with a sword. The pen represents knowledge, and the sword represents strength. What the sentence actually means is "Knowledge is better than power".)