Update due to PR feedback
Merge branch 'kg-bugfix-incorrect-cast' of github.com:realm/realm-java into kg-bugfix-incorrect-cast