Coerce an array into a numeric array, replacing non-numeric elements with nans.
If the array is already a numeric type, it is returned unchanged.
The array to coerce.