create table T(ID int identity primary key)
insert into T default values
insert into T default values
go
select cast(ID as varchar(10)) as ID
from T
where ID = 1
The query above has a warning in the query plan.
<Warnings>
<PlanAffectingConvert ConvertIssue="Cardinality Estimate" Expression="CONVERT(varchar(10),[xx].[dbo].[T].[ID],0)" />
</Warnings>
Why does it have the warning?
How could a cast in the field list affect the cardinality estimate?

Microsoft SQL Server 2012 - 11.0.2218.0 (X64)– Martin Smith Jan 25 at 10:50Microsoft SQL Server 2012 - 11.0.2100.60 (X64)and I have it locally inMicrosoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)– Mikael Eriksson Jan 25 at 10:55