I've been having some cool dreams lately but i have no clue how to get out of the dream i'm watching in order to KNOW that i'm watching it and that it's a dream.

is mediation the only thing to use as practice?