cast min argument