Length check for ObjectType.