How to convert string to byte array

How to convert string to byte array

How to convert string to byte array : I want to convert string to byte array and but i can't find any option for conversion.
I got array type in deluge script like list but byte datatype not found.

Any one have this question answer then reply me ASAP.