The term "sworn," when used in any statute, shall include the word "affirmed," in all cases where by law an affirmation may be substituted for an oath.