Revert type conversion at error handling