Recognise a cast inside a typedefed enum