Supporting Any and Integer type constraint when reading from database.