Most people know Kumail Nanjiani as computer coder Dinesh on HBO's "Silicon Valley." But over the past year, the star has transformed his body to play swordsman Kingo Sunen in the upcoming Marvel movie, "The Eternals," thanks to a super strict diet and fitness routine.

"I found out a year ago I was going to be in Marvel's 'Eternals' and decided I wanted to transform how I looked," Nanjiani, 41, wrote in an Instagram caption Dec. 16.