correct type and cast for bind