Converts object to integer, preserving the NULL value.

as.integer_or_null(x)

Arguments

x

Object to cast.

Value

x casted, or NULL.