It would be nice to have the equivalent of methods::as(strict = FALSE), which ensures that from inherits from to but does not force from to be an instance of to (stripping any extra properties).
Maybe this is a different function, like convert_lazy() or ensure_inherits().
It would be nice to have the equivalent of
methods::as(strict = FALSE), which ensures thatfrominherits fromtobut does not forcefromto be an instance ofto(stripping any extra properties).Maybe this is a different function, like
convert_lazy()orensure_inherits().