Tropical and goldfish food have diferent formula. For what I know, goldfish food has more fat and is often formulated with color enhancers.
Giving it to your tropical will not harm them, but get a tropical flake and feed alternating. This way you'll not throw away that food and your tropicals will enjoy it.
For what I understand you recently lost your goldfish, right? I so, I'm sorry for your loss. However, if it happened lot of time ago, check any expire date and the canister. Old food is not as nutritional as a "fresher" food.
BTW, what kind of fish/tank size you have?