The casts are already part of the CONTAINING_RECORD macro.
Attach a file by drag & drop or click to upload