Similar to as.numeric, however if the object has a values attribute attached, these are used as the numeric values
as.numeric
toNumeric(object)
object
the vector to convert