Many think AI will create destructive humanoid robots. Actually, this is not the real danger. The real danger are the cognitive biases which can be programmed into AI unknowingly by the scientists who created them.
A cognitive bias is a systematic error in how we think. To illustrate, if a person in Britain is asked what is likely to kill him — a terrorist attack or having a bath. Cognitive bias may make you opt for a terrorist attack but statistics prove more people die by drowning in a bath.
Then there is systemic bias called the availability heuristic. Information about terrorist attack is flashed in media and is more available to the mind. Drowning in bath-tubs do not make headlines. Such cognitive biases could be unknowingly programmed into AI computer programmes which run the robots.