accepting custom bools and strings when converting