add castexpr to id-usage determination