How to move systems from one world to another?

This code fails to compile, system is of type System.Type and the method expects a ComponentSystemBase. Is there anyway to move systems from one world to another?

    public class NetworkingBootstrap : MonoBehaviour
    {
        private void Start()
        {
            var systems = DefaultWorldInitialization.GetAllSystems(WorldSystemFilterFlags.Default);
            var group = Bootstrap.ServerWorld.GetOrCreateSystem<FixedStepSimulationSystemGroup>();
            var dotsnavGroup = Bootstrap.ServerWorld.GetOrCreateSystem<DotsNavSystemGroup>();
            group.AddSystemToUpdateList(dotsnavGroup);

            foreach (var system in systems)
            {
                if (system.Namespace == null) continue;
               
                if (system.Namespace.Contains("Path"))
                {
                    dotsnavGroup.AddSystemToUpdateList((ComponentSystemBase)system);
                }
            }
        }
    }

GetOrCreateSystem(system)