Typescript Check If Value Is Instance Of Interface