Added fieldName parameter, set failedCasts correctly
0.1.13