src: remove unnecessary cast