Fix assumption that ownerId is an integer type.
Merge pull request #2 from elijajah/feature/fixCastingException

Fix assumption that ownerId is an integer type.