Replace const char with generic send and send array type, allows sending
raw objects and primitives