convert file to another type.