Added static cast in implementation