Typescript Check If Variable Is Type Of Interface