If I would like to work on a project as a freelancer, is it possible to request payment off the books and still be able to protect myself in case of non-payment ?

I'd also like to hear how your experiences went with working off the books... did the client (if they were part of a company) accept this ?