casting from '%$T' to '%$T': casting away constness from a pointer or reference may result in undefined behavior in an amp ...