Hopefully it will go to a hardcore Trekker or Marvel Comics fan – but the penthouse of actor Sir Patrick Stewart is officially under contract to a buyer, AOL Real Estate reports.

Cue the deep space music: The Upper West Side penthouse that actor Sir Patrick Stewart bought in 2003 -- it fittingly overlooks Manhattan's Hayden Planetarium -- is in contract, says listing agent Brian Lewis of Halstead Property.

"It attracted multiple bids," Lewis says of the co-op unit listed for $3.8 million. "Ideally, it will be closing soon." The 1,300-square-foot, two-bedroom apartment at 118 West 79th St. features drop-dead gorgeous views of Manhattan's Central Park and the Upper West Side cityscape, and a wide, wrap-around terrace on the south and east sides of the unit.

The apartment hit the market June 6 and went under contract in July, Lewis told AOL, though he wouldn't reveal the sales price.

Patrick Stewart, of "Star Trek" and "X-Men" fame, was knighted by Britain's Queen Elizabeth in 2010. He and his ex-wife, television producer Wendy Neuss, bought the apartment as a pied-a-terre for $1.8 million.