Try something like this:
Imports System
Imports System.Xml
Imports System.Data
Public Module Module1
Public Sub Main()
Dim table As DataTable = GetTable()
Dim sql As String = "Dosage > 0"
Dim rows() As DataRow = table.Select(sql)
For Each row As DataRow In rows
row(0) = Convert.ToInt32(row(0))
Console.WriteLine(row(0))
Next
End Sub
Function GetTable() As DataTable
Dim table As New DataTable
table.Columns.Add("Dosage", GetType(Decimal))
table.Columns.Add("Drug", GetType(String))
table.Columns.Add("Patient", GetType(String))
table.Columns.Add("Date", GetType(DateTime))
table.Rows.Add(25, "Indocin", "David", DateTime.Now)
table.Rows.Add(50, "Enebrel", "Sam", DateTime.Now)
table.Rows.Add(10, "Hydralazine", "Christoff", DateTime.Now)
table.Rows.Add(21.5, "Combivent", "Janet", DateTime.Now)
table.Rows.Add(100.0000001, "Dilantin", "Melanie", DateTime.Now)
Return table
End Function
End Module
You can also see this in action here:
C# Online Compiler | .NET Fiddle[
^]