Updated some left over c-style casts