It is impossible to learn to meditate while dying. Therefore, it is a great help to become aware of the dreamlike state of all things during this life, to have understood this at least conceptually, and to have practiced the ability to work with one's mind for years.