Hilary Duff has found a way to beat the heat, joining the cast of the new Polish brothers comedy Stay Cool.

Duff co-stars in Stay Cool with Winona Ryder, Mark Polish, Sean Astin, Chevy Chase and Jon Cryer, according to The Hollywood Reporter.

The project, which shoots in July in Santa Clarita, Calif., is described as a "knowing-your-age comedy," centering on a successful author (Polish) who is forced to confront an unrequited high school crush (Ryder) when he returns home to deliver a commencement address to graduating seniors.

Duff will portray Shasta O'Neil, a sexy high school senior who flirts with the visiting author and invites him to the prom.