Const cast the RefCounted to allow attaching const functions as signal receivers.