Making enum base an optional param