c-style cast update