Fix #10: got rid of as.raw() which casued warning