Nathan Fillion said this quote

'Castle' is a guy living in a fantasy world. He's in his imagination, writing these stories of murder.