if (!CastExpression.isPossibleCast( operand.getItemType(th).getAtomizedItemType().getPrimitiveType(), targetType.getPrimitiveType())) {
if (!CastExpression.isPossibleCast( operand.getItemType(th).getAtomizedItemType().getPrimitiveType(), targetType.getPrimitiveType())) {
if (!isPossibleCast(p, targetType.getPrimitiveType())) { XPathException err = new XPathException("Casting from " + sourceType + " to " + targetType + " can never succeed");
if (!isPossibleCast(p, targetType.getPrimitiveType())) { XPathException err = new XPathException("Casting from " + sourceType + " to " + targetType + " can never succeed");