uploading casting fix for mongo