correct casting method name

Using try_cast_int directly in the array is more visual than a map on a two elements list.