Answer
Matthew Perry played a high-schooler trapped in an adult's body in the 2009 film 17 Again. The film follows the story of Mike O'Donnell, a 37-year-old man who is unhappy with his life and wishes he could go back to being 17 again. After a wish is granted by a magical basketball, Mike wakes up the next morning as his 17-year-old self.