code: private boolean isToBeCastedAnyType(LightweightTypeReference actualType, XExpression obj, ITreeAppendable appendable) {
  		if (actualType instanceof AnyTypeReference) {
  			if (getReferenceName(obj, appendable) != null)
  				return true;
  			else if (obj instanceof XBlockExpression) {
  				XBlockExpression blockExpression = (XBlockExpression) obj;
  				EList<XExpression> expressions = blockExpression.getExpressions();
  				if (expressions.isEmpty())
  					return false;
  				if (expressions.size() > 1)
  					return true;
  				XExpression last = expressions.get(0);
  				return isToBeCastedAnyType(actualType, last, appendable);
  			}
  		}
  		return false;
  	}
docs: On Java-level the any-type is represented as java.lang.Object as there is no subtype of everything (i.e. type for null).
  So, when the values are used we need to manually cast them to whatever is expected.
  
  This method tells us whether such a cast is needed.