sharedstate compare with right type