Examination is the first step: becoming alert to what passes through your mind. And there is constant traffic -- so many thoughts, so many desires, so many dreams are passing by.
You have to be watchful; you have to examine each and everything that passes through the mind. Not a single thought should pass unawares, because that means you were asleep. Become more and more observant.