Typescript Check If Object Instanceof Interface