Fixed a ClassCastException with BlockMill.