così dovrebbe andare?

int nchars = word.length();
char chars[nchars]=toCharArray(word);