Easiest way is to get the battery with the TRX end that you want . Or you can cut the wired closest to the deans plug , just make sure to cut one wire at a time . Strip the wires back a little and solder them on to the TRX connector .
But IMO if you have to ask how to do this , order a batt with the connector you want or take it to your LHS and have them change it over .
At Your Service Vinyl Works
Royal R/C & Hobby
Leisure Hours Hobby & Raceway