code: public function strToVal($value)
      {
          if (\is_float($value) || \is_int($value)) {
              return $value;
          }
          if (is_numeric($value)) {
              return $value + 0;
          }
  
          return $value;
      }
docs: @param string|number $value String represented number.
  
  @return string|number Number (int|float) if $value is string represenation of number, else $value.