Adds missing attributes in casts