Use outer variable loop
Added TestCastingOperations.java