There was no audition necessary for Miley Cyrus when it came to her latest film, “The Last Song.”

At Disney’s premiere Thursday producer Adam Shankman explained how Nicholas Sparks wrote the part just for her.

“What happened was an executive at Disney called … and said Miley wants to do something like ‘A Walk to Remember,'” said Shankman. “And (Sparks) said, ‘I’m thinking of writing my new book. Maybe I’ll just write something for her.’ So he wrote the novel and screenplay, simultaneously.”

Also on hand for the preem, were co-stars Greg Kinnear and Liam Hemsworth along with director Julie Anne Robinson and Disney’s Rich Ross.