Added to_number_array sanitization method