Twentieth TV has teamed with CBS Entertainment Prods. on the comedy series “The Boys” through an interesting bit of mix-and-match casting involving another pilot.

CBS, which picked up the sitcom to air this summer (Daily Variety, June 17), took two performers from the Twentieth pilot “American Dream”– Chris Meloni and Isabella Hoffman — and cast them in “The Boys,” bringing Twentieth aboard as a production partner.

Meloni and Hoffman will now play a thirtysomething writer and his girlfriend (replacing Anthony Edwards and Jessica Lundy) who move into a deceased man’s house and inherit his aging poker buddies. Meloni, who co-starred on “The Fanelli Boys,” reportedly had his own commitment from CBS that will be applied toward the series.

CBS announced earlier that Ned Beatty will star on the show, though sources say that situation could be complicated by the actor’s option of returning to “Homicide: Life on the Street,” which has received a midseason order from NBC.

The Eye web and Fox Inc. production division recently partnered to produce “Dudley,” a comedy starring Dudley Moore. Networks and studios have engaged in such collaborative efforts more frequently since the financial interest and syndication rules were revised, freeing the webs to produce more of the programs they air but requiring them to distribute product domestically through a third party.

Capitalizing on those guidelines, Columbia Pictures TV has forged alliances with ABC Prods. on the one-hour series “Do the Strand,” CBS on “Walker, Texas Ranger,” and NBC Prods. on its Bill Cosby mystery movies.