The data types of the operands of the conditional operator were incompatible. The operand types could not be implicitly cast ...

The data types of the operands of the conditional operator were incompatible. The operand types could not be implicitly cast into compatible types for the conditional operation. To perform this operation, one or both operands need to be explicitly cast with a cast operator.