Fix type of the Device.Type property