pub(crate) fn assert_u32(value: usize) -> u32
Converts a usize value to u32, panicking if the conversion fails.