char[] ch = str.toCharArray();

Read more of this post