Revert "[PERF] Speed up integer type casting from DB"

This reverts commit 6f7910a and 52c70d4.

Query params are type cased through the same method, so this approach doesn't work.