In the connection manager for your flat file, under the Advanced heading, you can specify the internal data type for each incoming column to match the desired output type, e.g. DT_STR or DT_WSTR. Alternately, you can send the incoming columns through a derived column transformation in the data flow to convert their type.