Validate object type