R/utils.R
as.type_or_null.Rd
Converts object to certain type, preserving the NULL value.
as.type_or_null(x, as.type)
Object to cast.
A casting function for x
x casted, or NULL.