FINITE CASIMIR EFFECT IN QUANTUM-FIELD THEORY