Allow non-Number-classes for SQL numbers, e.g. Boolean for number(1)