Reduce casting in various tables by defining the table