Dave - there's a lot of Firefly references in Castle, so I'm led to believe.
There are also 2 books to accompany the series, both written by Richard Castle - Heat Wave and Naked Heat.
An internet buddy of mine loaned me Heat Wave, and I've just downloaded Naked Heat to my Kindle!