Typescript Convert String To Integer