Made cast-to-struct introduced in the last patch C-compatible.