Ashton Kutcher and Mila Kunis' letters of support for Danny Masterson

Ashton Kutcher and Mila Kunis wrote letters of support for Danny Masterson before his sentencing for rape.

Earlier this week, Danny, 47, was sentenced to 30 years in jail for two rapes but his 'That 70s Show' co-stars Ashton, Mila, Kurtwood Smith and Debra Jo Rupp wrote letters defending him and Ashton and Mila both called him a "role model".

In a letter obtained by PEOPLE, Ashton wrote: "As a role model, Danny has consistently been an excellent one. I attribute not falling into the typical Hollywood life of drugs directly to Danny.

"He has always treated people with decency, equality, and generosity."

Mila, 40, wrote: "I first met Danny during our time working together on 'That 70’s Show', and from the very beginning, I could sense his innate goodness and genuine nature. 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.

"His genuine concern for those around him and his commitment to leading by example make him an outstanding role model and friend."

Kurtwood added: "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 eight years we did the show, we never had the problems some other shows had with their younger cast members."

And, Debra Jo said: "He was well liked and very respected. 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 and Jonathan Tucker also wrote letters of support.

Danny was sentenced to 30 years in prison for raping two women in 2003 and Judge Charlaine F. Olmedo said in Los Angeles Superior Court: "Mr. Masterson, you are not the victim here. Your actions 20 years ago took away another person's choice and voice. Your actions 20 years ago today were criminal, and that's why you are here."

© BANG Media International