as(object, Class, coerce=T)
object
is to be coerced to.
TRUE
, a method for the
generic
coerce()
is selected. If
FALSE
, if an
is
relation exists for
object
and
class
, this will be used. An error
results if the coerce method or the
is
relation fails to exist, in the two cases.
This is the SV4 generic coercion function.
as(1:10, "character")