Uses C++11 iterator in samples

or it just uses touches->anyObject() instead of creating an iterator
and removes more unneeded casts