But you should be really careful converting strings to char*, and never do it unless there’s absolutely no alternative. The array that’s returned is transient, and will become invalid if the string goes out of scope or changes in any way. This is all explained in the comments for the String class casting operators.