Added support for integral and floating point types for the set method.