Transgender actress Candis Cayne appeared Tuesday on CNN to discuss a Mississippi law that targets the LGBT community.

Republican Governor Phil Bryant signed the bill into law on Tuesday.

(Related: Mississippi Gov. Phil Bryant signs “religious freedom” bill into law.)

House Bill 1523 allows companies to deny services or goods for the “celebration or recognition of any marriage, based upon or in a manner consistent with a sincerely held religious belief or moral conviction.” It also protects individuals who believe that a person's sex is “objectively determined by anatomy and genetics at time of birth.”

Cayne, who currently appears on Caitlyn Jenner's reality series I Am Cait, called the law a “total invasion of privacy.”

“First of all, it's a total invasion of everyone's privacy,” Cayne said. “And it doesn't just affect trans people. It affects the whole community. And it affects everyone. I mean right now it's scary to think that your wife, or your husband, or your daughter or child could actually be checked every time they want to use a public restroom. It's a scary thought.”

Critics of the law, which takes effect July 1, have promised to challenge it in court.