Preheat oven to 350°F. Add the cream, salt, cinnamon, and butter to the mashed sweet potatoes. Heat the crushed pineapple and sugar in a saucepan for about 10 minutes. Starting with the sweet potato mixture, layer alternately with the pineapple. Top with coconut. Bake for 30 minutes.