ommited unnecessary cast in Sample.cc