nextRecord cast