Here you could just keep the old code and instantiate a `FixedRateBondHelper`; the `shared_ptr` will be downcast automatically when passed to `push_back` below. Did you change it on purpose? (Say, because it would translate better to R.)