Complex sentence: Spike Milligan, who had asked for a guest part in the series, was originally cast to play the patient, but he was too ill, and the role was played by Eric Sykes.
Split into simpler sentences: Spike Milligan, who had asked for a guest part in the series, was originally cast to play the patient. However, he was too ill, and the part was assumed by Eric Sykes.