The actor, comedian, and former talk show host confirmed his involvement in the film.