Castellum has agreed to sell a portfolio of nine public-sector properties across Sweden to AP7 for SEK 5.6 billion ($618 million).