Rename assert_on_chip to on_chip_cast