In this case it might be best to use getAsString to avoid confusion.