The characters are having the following conversation (provided for context), and I'm unsure as to what こと in the last line means. According to a previously asked question, it has a large number of uses. From the context, I'm tentatively guessing that こと means "thing", seeing as how the topic is about a talent that the first character was previously unaware of. I'm unsure though, as こと has many other uses.
「……才能?」
「あなたには、生まれついての才能があるのよ
人を殺す才能。
生き残る才能。
暗殺者としての才能が」
呆れた話だった。
いきなり何を言いだすかと思えば。
「はは……、わけの解らないこと言わないでくれよ。大体、何の根拠があって……」
Is my understanding of the use of こと in the above sentence correct?