Remove the asInstanceOfs that bufuddled my bleary eyes last night.