I remember going on the sleeper train from Berlin to Malmö back in 2011.
It took the ferry between Sassnitz and Trelleborg.
I seem to recall it being normal Swedish SJ sleeper cars, though I do admit that I don't know this for certain
Edit: I think it was either a BC2 or BC4