changed casts to static_casts