as.numeric function

Coerces to numeric or complex form