Fixes ClassCastException bug in BootReceiver class