Automatically cast properties for Swatinem/model