If 「お金は」 weren't in there, then yes, を (or the contrastive は) would be more appropriate.
Since it is in there, you can think of this as saying it's best not to carry money "in the form of" or "by means of" cash (with the nuance, of course, being that you should instead bring a payment method in the form of credit cards, traveler's checks, etc.)