Convert to castle format.