swap type for kind