In order to be able to determine whether a variable will be numeric at run-time, a logic can be implemented in the Process as follows:

Another way to check the type of the variable at run-time would be to use the “Convert Text to Number” Action and configure the “Exception Handling” tab as follows:

The process would look like the following: