protected bool CheckUnBox(TypeExpression op1, TypeExpression op2) { if (op1 is TypeVariable || op1 is UnionType || op1.HasTypeVariables()) { if (IsValueType(op2) || op2 is TypeVariable || op2 is UnionType) { this.codeGenerator.UnboxAny(indent, op1); return(true); } } return(false); }