Cannot infer a common type for the second and third operands of the 'If' operator. One must have a widening conversion to ...