In a medium pan, melt butter and sugar together over medium heat. Once the butter has melted, stir in the sliced apples, cornstarch and cinnamon. Make sure all the apples are fully coated. Cook the apples until they begin to soften and slightly caramelize.