<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _to_numeric(val):
 """ Helper function for conversion of various data types into numeric representation. """

    if isinstance(val, (int, float, datetime.datetime, datetime.timedelta)):
        return val
    return float(val)