Selena Gomez could have gotten a role in the beloved sitcom "The Big Bang Theory" if only she had the time to shoot for the series, according to a newly-released book.

The book - "The Big Bang Theory: The Definitive, Inside Story of the Epic Hit Series" - by Jessica Radloff which hit shelves last Tuesday, revealed casting secrets that fans of the show would surely enjoy. One interesting trivia about the show was that producers approached Gomez's team a couple of times after she mentioned on Instagram that she was a fan of the show.

Steve Molaro, one of the show's executive producers, said that they wanted to cast Gomez as the "beautiful" and "great" sister of the nerdy character of Amy Farrah Fowler (played by Mayim Bialik).

"I had kicked around an idea that Amy had been complaining about her awful stepsister," who would turn out to be "beautiful and great and everyone loves her," Molaro said in the book. However, the idea never came to fruition. "It never worked out due to scheduling," he said.

The tell-all, which is packed with exclusive interviews from the show's producers and cast, also revealed how series co-creator Chuck Lorre considered making Kaley Cuoco's character Penny an actual robot.

"There was a moment where I thought perhaps the female character was an android that the guys built," Lorre said. "We wrote a test scene and had a couple actors read the scene for us. And they were halfway through the scene when I went, 'Never mind.'"

"The Big Bang Theory" ran from 2009 to 2017 and centered on five friends living in Pasadena, California. Aside from Cuoco and Bialik, the show also starred Johnny Galecki, Jim Parsons, Simon Helberg, Kunal Nayyar, Melissa Rauch, and Kevin Sussman.

In the book, producers also revealed they wanted to cast Macaulay Culkin for the role of Leonard Hofstadter.

"There's a special ethereal quality to that actor that I thought might be great," Lorre said.

"We had a terrific meeting with Macaulay... and then we heard that he had decided he wasn't interested," series co-creator Bill Prady explained.

The book also revealed Cuoco used a body double at a time when she sustained a broken leg in Season 4.

"The Big Bang Theory" (cast seen here) is one of the many shows to be on offer from streaming service HBO Max
"The Big Bang Theory" (cast seen here) is one of the many shows to be on offer from streaming service HBO Max GETTY IMAGES NORTH AMERICA / Jason Merritt/TERM