Typescript Check If Object Is Of Interface Meaning