In 1785 the castle ceased to be a royal residence .
In 1785 the castle was converted into barracks for the army .
In 1785 the castle ceased to be a royal residence and was converted into barracks for the army .