This looks like an update. This means that calls to put() will be redirected to update(). In update() the conversion is missing. You will likely want to move it there.