Preheat Oven:
Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
Prepare the Cake Batter:
In a large mixing bowl, combine cake mix, pineapple (with juice), shredded coconut, oil, eggs, and milk.
Mix until smooth and well blended.
Bake the Cake:
Divide batter evenly between pans and bake for 25–30 minutes, or until a toothpick inserted in the center comes out clean.
Let cakes cool completely before frosting.
Make the Pineapple Filling:
In a small saucepan, combine pineapple, sugar, and cornstarch.
Cook over medium heat until thickened (about 5–7 minutes).
Cool completely before spreading on the cake.
Prepare the Frosting:
Beat cream cheese and powdered sugar until smooth.
Fold in whipped topping and shredded coconut until creamy and fluffy.
Assemble the Cake:
Place one cake layer on a serving plate. Spread with pineapple filling.
Top with the second layer and frost the entire cake with coconut frosting.
Garnish and Chill:
Sprinkle with extra shredded coconut.
Chill for at least 1 hour before serving for the best texture and flavor.