Fixed type conversion of enum to id warning.