He was New York State Comptroller from 1839 to January 1841 when he resigned because of his bad health. Subsequently, he was appointed a bank commissioner and died in office soon after.
He was buried at the Oak Wood Cemetery in Lewiston.
Google BooksThe New York Civil List compiled by Franklin Benjamin Hough (pages 34 and 39; Weed, Parsons and Co., 1858) (giving the impression that Cooke was appointed bank commissioner in May 1840, but in fact he was appointed ["under the act of May 1840"] only after his resignation as Comptroller)