Typescript Check If Instance Of Interface