Added typecast for setArchived

Issue #63