Fix for pointer cast issue in ocrDbCopy implementation