unnecessary cast fix