Added enum cast