I have a class myclass in an R package for which I would like to define a method as.raw, so of the same name as the primitive function as.raw
myclass
as.raw