cast TH2D to TH2F