Fix typecasting array of integers

When typecasting an array of integers, if the value happens to be provided as strings (in forms for example), `quote_and_escape` will receive a `Numeric` and try gsubing on it.
This fixes it, returning the value without modifying it.

Closes #13444