Remove typecasts in examples

This follows up on https://github.com/twpayne/ol3/commit/e96d56215b49a70a9c824ff610eb829c55eb9018.

Please review.