This is unnecessary. The following should be adequate:

```
if (typeof data === 'string' && Y.Lang.trim(data)) {
    data = +data;
}
```

But the approach in this commit isn't harmful, so my suggested change is not required for merge.