Freedom from ego

I have been told that Eastern wisdoms teach people how to restrict their egos, their desires, to free themselves from suffering, is this true?
Do Eastern techniques effect a person so that their egoistic desires diminish until eventually they are united with the One, with the non-local?