Validate types