Fix cast error from GString to String when using MongoDB
Merge pull request #25 from fniwes/03d8f360d0ef4a1e9b7c66baa990f6bc9bc317f0

Fix for MongoDb