Got rid of unnecessary byte casting.

IntelliJ just wouldn’t shut up about it.