Danny Mastersonhad some support from hisThat ‘70s Showcostars ahead of his sentencing.

The actor was sentenced to 30 years in prison on Thursday for two rapes that took place during the height of hisThat ’70s Showfame. Prior to the decision,Ashton KutcherandMila Kunissubmitted letters in defense of Masterson’s character.

John Shearer/Getty; David Livingston/Getty

Danny Masterson Dylan Fest Nashville 05 24 17 Ashton Kutcher. Mila Kunis oscars 03 27 22

“We had never met or seen these people before, but Danny was the first person to jump to the defense of this girl. It was an incident he didn’t have to get involved in but proactively chose to because the way this man was behaving was not right,” Kutcher wrote. “He has always treated people with decency, equality, and generosity.”

Kutcher’s letter mentioned Masterson as “an extraordinarily honest and intentional human being,” and said Kutcher — who also starred onThe Ranchwith Masterson — can’t recall a time his costar told a lie.

Kevin Mazur/WireImage

Ashton Kutcher Danny Masterson CMT Music Awards Nashville 06 07 17

Kunis, 40, wrote her own letter, which in part, named Masterson as someone with “exceptional character.”

“I first met Danny during our time working together onThat 70’s Show, and from the very beginning, I could sense his innate goodness and genuine nature,” Kunis wrote. “Throughout our time together, Danny has proven to be an amazing friend, confidant, and, above all, an outstanding older brother figure to me. His caring nature and ability to offer guidance have been instrumental in my growth both personally and professionally.”

FOX Image Collection via Getty

Ashton Kutcher Danny Masterson Mila Kunis that 70s Show

That ’70s ShowandThat ’90s ShowstarKurtwood Smithalso contributed to the good faith for Masterson. “I consider Danny to be a good friend. Our friendship revolved around work… Danny was the leader among his contemporaries in the cast. He was a tad older and much more experienced and he took that position seriously. During the 8 years we did the show, we never had the problems some other shows had with their younger cast members,” he wrote.

Debra Jo Ruppspoke to the lack of drug use on the'70s Showset. “He was well liked and very respected,” she wrote. “One of the first things Danny did with them was to sit [the teens] all down (he had a little meeting) and had them all make a pact that no one would do drugs because of the nature of our show. The spotlight would be on them and he wanted everyone to succeed. I remember thinking that it was such a smart thing to do and something I never would have thought of. As a result, you never saw them in the tabloids. Danny made sure of that and I was so appreciative.”

Ethan Suplee, Eric Balfour, William Baldwin, Giovanni Ribisi, Marissa Ribisi, Jonathan Tucker and Masterson’s siblings, Jordan, Christopher, Will and Alanna, also wrote letters of support for the actor.

This isn’t the first time Kutcher spoke about Masterson’s character. In January, he expressed hope that Masterson was innocent of the allegations. “I’m not the judge. I’m not the jury. I’m not the DA. I’m not the victim. And I’m not the accused. And so, in that case, I don’t have a space to comment.” he toldEsquire. “I just don’t know.”

He added he wanted Masterson “to be found innocent of the charges brought against him” while also sharing his support for the victims of abuse, saying, “I wholesale feel for anybody who feels like they were violated in any way.”

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

Masterson’srape trialbegan last October, though it firstresulted in a mistrial. He plednot guilty, but wasfound guiltyon two counts of rape in May. He was facing a maximum sentence of 30 years to life when he entered the court for sentencing on Thursday — which he received.

The Ranchactor plans to appeal his conviction.

If you or someone you know has been a victim of sexual abuse, text “STRENGTH” to the Crisis Text Line at 741-741 to be connected to a certified crisis counselor.

source: people.com