Cast floats as integers on Level::getBlock() and Level::setBlock()