Typescript Check Variable Is Interface