Can anyone help me converting a string into byte array.

Lets say i have string "Hello world" and i want to convert it, copy it to byte array.