Use a type object for type casting behavior on SQLite3