adds to_s casting for attribute names to preserve comparability