Cast retval.