It would bolt right in...You'd have to swap several things, ECU included. Likely the engine bay wiring, and potentially find ways to bypass the clutch switches if the auto ECU doesn't do that.
TBH, your best bet would be to swap in a C60 (6 speed). Slightly worse fuel economy due to different gearing, but much more reliable than the C59 (5 speed).