remove merge conflict
improve process_cast argument