Bug 97246 Convert to enhanced for misses cases with cast
RC1 The following case is missed: public void testNix() { List list= new ArrayList(); for (Iterator iterator = list.iterator(); iterator.hasNext();) { Object element = iterator.next(); } }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ConvertIterableLoopProposal.java
final ITypeBinding[] types= binding.getInterfaces();
		for (int index= 0; index < types.length; index++) {
			final ITypeBinding result= getSuperType(types[index], name);
			if (result != null)
				return result;
		}
		return null;
	}
	
	private boolean fAssigned= false;
	
	private final AST fAst;
	
	private IBinding fElement= null;
	
	private Expression fExpression= null;
	
	private IBinding fIterable= null;
	
	private IVariableBinding fIterator= null;
	
	private List fOccurrences= new ArrayList(2);
	
	private final ForStatement fStatement;
	/**
	 * Creates a new convert iterable loop proposal.
	 * 
	 * @param name the name of the correction proposal
	 * @param unit the compilation unit containing the for statement
	 * @param statement the for statement to be converted