Changed c-style casts to suffixes or c++-style ones