Be less silly with logic.
Convert to values proper type so ps.setObject does conversions.