Cal. Civ. Code § 1813
A deposit may be voluntary or involuntary; and for safe keeping or for exchange.