My workaround was to call map(srcObj, destClass) instead of map(srcObject, destObject).