Type checking for Object validation