Remove a couple of redundant casts.