In "I'm Danish" it's an adjective. With "I'm a Danish" it's a noun, stating you are a pastry.