BootHelper: fix ClassCastException