array conversion functions