Topology, Mass and Casimir Energy