Straw wrote the books as if he were the fictional mystery writer on the hit ABC series “Castle.” Freed from the limits of novelization — basing a book on a movie or TV series — the writer enjoyed figuring out what Castle’s novels might be like and then setting to work on stories about New York detective Nikki Heat.