Variables may not change type during execution. Variable types are strict, except for variables of type Object.
If you want to get a list of files from a folder on the remote host using the File Transfer Task, use the 'Get remove files list' Action and set up a variable of type 'Object' to receive the list.