miscasting

noun
  1. the act of casting an actor in a role that is unsuitable for them or that they cannot perform well
  2. Usage: theater and film

Examples