Remove (int) from return (int)ret;