542
548
// unboxing does not require a cast if the argument was an isinst instruction
543
549
if (arg1 is AsExpression && byteCode.Arguments[0].Code == ILCode.Isinst && TypeAnalysis.IsSameType(operand as TypeReference, byteCode.Arguments[0].Operand as TypeReference))
546
557
return arg1.CastTo(operandAsTypeRef);
548
559
return arg1.CastAs(operandAsTypeRef);