Trigger `invalid` event if casting fails