In a saucepan, combine the sliced mangoes, granulated sugar, cornstarch, and lemon juice. Cook over medium heat, stirring gently until the mixture thickens and the mangoes become soft and caramelised. Add a sprinkle of cinnamon for extra flavour if desired.