String to Char Array

Good Day Everyone, How do you convert a string datatype to a char Array datatype in order to do a SQL Server Lookup where the field being searched is of char(10) format? The data being entered is of string format eg. “A345”. However this error is returned.