Fixed typecast (fixes warning in previous commit, no functional change)