added optional compiler warning regarding c-style casts