adapt database to typed content via cast