Would be nice to standardize the error message for these type mismatches.