Issue with cast and qualifiers.