For “The Namesake”‘s edgy young protagonist, director Mira Nair cast Kal Penn, best known as Kumar in “Harold and Kumar Go to White Castle.” She also put novelist Jhumpa Lahiri and more than 20 members of Lahiri’s family in small roles — after all, the original story was based on them.