Validate types, don't swallow invalid types.