def _obj2str(a, none_char='-'):
    """ Casts object a to str. """
    if isinstance(a, float):
        if str(a)[::-1].find('.') > 5:
            return '{:.5f}'.format(a)
    elif a is None:
        return none_char
    return str(a)
