It’s taken “Cats” nearly 40 years to make it from the stage to the screen, but “In the Heights” has made the notoriously tricky transition from Broadway musical to feature film in less than half that time. Now the first trailer for the movie, which co-stars songwriter Lin-Manuel Miranda, has been released.

Miranda plays the owner of a shaved-ice dessert stand, while Anthony Ramos — a veteran of Miranda’s smash “Hamilton” as well as the most recent film version of “A Star Is Born” — takes over the composer’s original lead role as Usnavi, a bodega owner in the Washington Heights neighborhood of Upper Manhattan.

“It’s the story of a block that was disappearing,” Usnavi says in the trailer for the film, which deals in part with gentrification. “The streets were made of music.” That idea is given vibrant life via colorful, large-scale dance numbers, some shot from a Busby Berkeley-esque overhead angle.

Although the show opened on Broadway in 2008, the story seems to have been updated for today’s political climate, as mention is made of the proposal to deport the “Dreamers,” children eligible for the Deferred Action for Childhood Arrivals program who were brought to the United States by undocumented-immigrant parents.