drop explicit string type
use db specific cast instead of hard-coded one