Why Is instanceof *Type Wrong and Getting Deprecated?