In a medium mixing bowl, beat cream cheese until smooth.
Add pudding mix and milk, and beat until well combined.
Fold in the whipped topping until evenly mixed.
Gently fold in the drained crushed pineapple.
Spread the mixture into the prepared graham cracker crust.
Sprinkle shredded coconut on top, if using.
Chill in the refrigerator for at least 2 hours before serving.