Fixed stupid mistake in asInstanceOf removal