'Life is a dream' directly equates life to a dream without using 'like' or 'as'. This direct comparison is a Metaphor. Simile would require a connecting word, Personification needs human traits given to non-human, and Hyperbole requires exaggeration.