---
title: "asLong"
sidebar_label: "asLong"
description: "Kotlin binding reference: asLong."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Json](index.md)/[asLong](asLong.md)

# asLong

[common]\
fun [asLong](asLong.md)(): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)

The value as a 64-bit integer (any number reads through); a non-number fails with `INVALID_ARGUMENT`.