Made the get methods, the convertToType template and the convertToStr template const.