Typecast model Id so that urls don't break when using MongoDB object Id'...

...s