Refactor of DataTable column access, type checks, and additional Unit Tests.