String to char array in Java

Converting a String to primitive character array in Java, use the following:

String number = "1234567890";
char [] charArray = number.toCharArray();