Change top level pi type