Adding logic to persist numeric types