This question is important for several reasons.  First of all, it relates back to the Electrochemical Series.  If there are impurities in a solution that are less reactive than the target metal of interest, it may not be possible to recover without first addressing the impurities.