pullType method for gpio objects