Make tryFromObject errors give more detail about which cast didn't work