Casey Wilson: 'Marry Me' Star Pens Hilarious Essay on Sleeping With Her Boss (VIDEO)

Casey Wilson slept with her boss. Wait, what?

In a piece published on Cosmopolitan appropriately titled, "Yes, I Slept With My Boss," the 33-year-old actress opened up about trying to woo her now-husband David Caspe, while starring on his comedy "Happy Endings" - but dating the boss was considered a "horrible idea."

"I have always been attracted to men with 'power,' despite the fact that the guys I usually dated were by turns: a poet, a magician named Ashley, and a dog walker," Wilson wrote. "This all changed when I was cast as Penny Hartz on an ABC sitcom called 'Happy Endings' and I met the show's creator and boss, David Caspe."

"David was cute and funny and above all else, kind," she wrote. "He had created three hilarious parts for women on the show and it was heaven on earth getting to be funny all day. I was head over heels for him, but I think we're all in agreement that sleeping with your boss isn't a great color on anyone. It's a horrible idea. A cry for help at best that usually results in a drunken office party debacle that gets retold years after you've been sent home clutching your belongings in a paper bag."

Due to her self-confessed "low dignity/high confidence," Wilson said she decided to try and pursue a relationship with the writer - despite the warning signs. Still Casey did not reciprocate her pursuit, until "one drunken night."

"Finally, one drunken night he turned to me and said, 'If we didn't work together we could French kiss,'" she wrote. "I thought he was kidding and leaned on in (Sheryl Sandberg would be so proud) but he was dead serious. He had been given a stern mandate to 'never date the actresses.' And while those are wise words for everyone to live by, I was crushed. Where was this "casting couch" I had been so stringently warned about? But he was not having it. Which made me like and respect him even more."

After a year of failed attempts, Wilson decided to wait for Caspe "to be ready." In the piece, the actress said she knew that he was "the one."

"I'll never forget the romantic night over dinner with coworkers at Benihana when David turned to me and said he was finally ready to give it a try," she continued. "At this point we had over a year of friendship under our belts and the mutual respect that comes from working together on our sides. We started dating and a year-and-a-half later, we were engaged."

The couple tied the knot in May in an intimate ceremony in Ojai, California. The two are now working together on NBC sitcom "Marry Me," in which Caspe is the writer and his wife plays main character, Annie.

"Sleeping with your boss or coworker is a huge risk," she admitted. "It's one of those things that's always wrong unless it turns out right... So, yes. I slept with my boss, but I also married him. So that makes me his boss. Destiny fulfilled."