While you can't declare data types in Windows Scripting (VBScript, ASP), you can assign a variable to become a type, then verify that variable's type. VBScript provides no type protections, so you're allowed to reassign a declared variable to a different type. This loose typing strategy is one root of problems.
Dim textVariable : textVariable = "Hello World!"
WScript.Echo TypeName(textVariable)
' Returns Text
Dim integerVariable : integerVariable = 6
WScript.Echo TypeName(integerVariable)
' Returns Integer
Dim objectVariable : set objectVariable = CreateObject("Scripting.Dictionary")
WScript.Echo TypeName(objectVariable)
' Returns Object
Some types require some brute force and trickery. The binary
datatype is one example.
Dim generateData(1) : generateData(0) = &HFF
Dim mem : Set mem = CreateObject("System.IO.MemoryStream")
mem.SetLength(0)
mem.WriteByte (generateData(0))
Dim byteArray : byteArray = mem.ToArray()
'Returns a VB Style, "Byte()" [Byte Array]