Cast arguments of function _rev_cap.