Create a stanfit object from an object for which a method exists,
so that all methods for stanfit objects can be used.
Value
An object of class stanfit, as documented in rstan::stan.
Examples
stanfit <- "a"
class(stanfit) <- "stanfit"
converted <- as.stan(stanfit)