Cast arguments of _prelsoc_cap function.