SyntaxDim result As typename = DirectCast(expression, typename)
DescriptionThe DirectCast function converts an expression or object to the specified type. The original type of expression must have an inheritance relationship with the new type, or an error occurs. Usage at a Glance
Version Differences
See AlsoCType Function, TryCast Function |