No person shall be deemed an incompetent witness because of his or her conviction of any crime, or sentence to imprisonment therefor; but shall be admitted to testify like any other witness, except that conviction or sentence for any crime or misdemeanor may be shown to affect his or her credibility.