Function asNumber

Returns x if x is a number, NaN and other value will be coerced to 0.