I've been doing so naturally since I can remember. There are books on it that teach you how to though. At least conscious astral projection. That's how I learned to do it consciously my mom had a book on it lying around the house. I was able to accomplish it the first time I tried. As far as doing it during sleep I don't know.