Not understanding metaphors or sayings and taking them literally is a symptom of mental illness.
It's common in autism. And bear in mind that not all autistics are savants.