Complex sentence: And I said to John when it was about to open,'Why did you cast them?' And he said,' That was what the studio insisted on.
Split into simpler sentences: And I said to John when it was about to open, Why did you cast them? "And he said," That was what the studio insisted on.