Remove extra asInstanceOf