Get the first element returned by class(), and translate "double" to "numeric".

firstClass(x)

Arguments

x

An R object.