Typescript Check If Variable Is Of Type Number 10