强制类型转换?有必要吗?该怎么解决

强制类型转换???有必要吗??output select: + (this.checkBox1.Checked ? programma : not a progra

强制类型转换???有必要吗??
output = "select:" + (this.checkBox1.Checked ? "programma" : "not a program") + "\r\n";

output = "select:" + (string)(this.checkBox1.Checked ? "programma" : "not a program") + "\r\n";

这里的sting 应该是错误的吧,本来就是string,为什么还要加一个强制类型转换

[解决办法]
Checked 是BOOL类型