tryCatch for non-numeric codings

REDCap usually takes numeric codings for categorical variable, ie
1, Option a
2, Option b

I just came across a database with codings
a, Option a
b, Option b

fieldToVar() by default tries to force codings to numerics.  In the case that this doesn't work, the tryCatch will resort to using character codings.