Typescript Check If Variable Is Interface