check if obj is an Object.