hm I don't think there is a way to check these special casting rules in this place
should be instead just whitelist operations?