Objects.cast regregress bug