Created BytesCommand.toByteArray method