Once you have cut the cast iron, measure the internal diameter 80, 85 or 90mm and get the connector of the size and length required. Search for "cast iron toilet connector". As the outlet slopes downward, you mayneed another flexi like the one you have.