Fix bug introduced in 30166a.

This caused indexes to be truncated. It wasn't the casting either, but
as that is redundant I removed it anyways.