The quote is an example of a metaphor because it uses an implicit comparison, comparing your dreams and aspirations to castles built in the air. The imagery of the metaphor establishes that both are grandiose and impressive, but require a foundation built under them in order to become reality.