Whenever there is a cloud on title to real property or any interest therein, by reason of any instrument, record, claim, encumbrance or proceeding which is apparently valid or effective but is in truth and in fact invalid, ineffective, voidable, or unenforceable, and may be prejudicial to said title, an action may be brought to remove such cloud or to quiet the title.
An action may also be brought to prevent a cloud from being cast upon title to real property or any interest therein.