Typescript Union Type From String To Int