def to_astropy_column(llwcol, cls, copy=False, dtype=None,<EOL>use_numpy_dtype=False, **kwargs):
if dtype is None:  <EOL><INDENT>dtype = _get_column_dtype(llwcol)<EOL>if use_numpy_dtype and numpy.dtype(dtype).type is numpy.object_:<EOL><INDENT>try:<EOL><INDENT>dtype = NUMPY_TYPE_MAP[dtype]<EOL><DEDENT>except KeyError:<EOL><INDENT>for key in NUMPY_TYPE_MAP:<EOL><INDENT>if issubclass(dtype, key):<EOL><INDENT>dtype = NUMPY_TYPE_MAP[key]<EOL>break<EOL><DEDENT><DEDENT>else:  <EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT:type>" % dtype)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>try:<EOL><INDENT>return cls(data=llwcol, copy=copy, dtype=dtype, **kwargs)<EOL><DEDENT>except TypeError:<EOL><INDENT>if dtype is numpy.int_ and isinstance(llwcol[<NUM_LIT:0>], ilwdchar_types):<EOL><INDENT>return cls(data=map(dtype, llwcol),<EOL>copy=False, dtype=dtype, **kwargs)<EOL><DEDENT>raise<EOL><DEDENT>
Convert a :class:`~ligo.lw.table.Column` to `astropy.table.Column`

    Parameters
    -----------
    llwcol : :class:`~ligo.lw.table.Column`, `numpy.ndarray`, iterable
        the LIGO_LW column to convert, or an iterable

    cls : `~astropy.table.Column`
        the Astropy `~astropy.table.Column` or subclass to convert to

    copy : `bool`, optional
        if `True` copy the input data, otherwise return a reference,
        default: `False`

    dtype : `type`, optional
        the data type to convert to when creating the `~astropy.table.Column`

    use_numpy_dtype : `bool`, optional
        convert object type to numpy dtype, default: `False`, only used
        with ``dtype=None``

    **kwargs
        other keyword arguments are passed to the `~astropy.table.Column`
        creator

    Returns
    -------
    column : `~astropy.table.Column`
        an Astropy version of the given LIGO_LW column