fNdata is Int_t. There should not be any warnings so my preference is to avoid explicit casts as they may hide potential problems. Can be changed to (T)fNdata if you prefer it that way,