Typescript Check If Value Is Number