src: Remove superfluous static_cast