Function to convert a channel to a clojure integer vector