Added generic TrTo and TrFrom commands which calls the appropriate
conversion function according to the file type.