function Test-ConfigurationDataValueIsInteger { [CmdletBinding()] Param( [AllowNull()] $Value ) if($null -eq $Value -or $Value -is [bool]){ return $false } return ($Value -is [byte]) -or ($Value -is [sbyte]) -or ($Value -is [int16]) -or ($Value -is [uint16]) -or ($Value -is [int]) -or ($Value -is [uint32]) -or ($Value -is [long]) -or ($Value -is [uint64]) }