If you can cultivate wholesome mental states prior to sleep and allow them to continue right into sleep without getting distracted, then sleep itself becomes wholesome.
The Truth-power must be brought down from above into that state of peace, and this higher power - Parashakti - will directly guide the vehicle - ādhāra - and transform it.