Casting to `const char *` is not necessary as input, the type are already the right ones. It could not be before as `result` was with the wrong type.