Fixing Java 8 compilation issues with type casting
Merge pull request #133 from iliat/google-fixes

Fixing Java 8 compilation issues with type casting