Uses a dictionary to cast objects of a specific type of a Dictionary. Intended for package developers, internal use only.
cast_from_dict(x, type, dict, clone = FALSE, multiple = TRUE)
:: (character()
| list()
)
Object to cast.
:: character(1)
Expected type of objects.
:: Dictionary Expected type of objects.
:: logical(1)
Clone objects, if necessary. Default is FALSE
.
:: logical(1)
Cast multiple objects of type type
or just a single one?
Object of type type
or list of objects of type type
.