# touchlab-tools

Стефан Јовановић

11/12/2023, 10:23 AM
One more question. I have a generic sealed class in the commonMain:
Copy code
sealed class RequestState<out T> {
    data class Success<out T>(val data: T) : RequestState<T>()
    data class Error(val message: String) : RequestState<Nothing>()
    data object Loading : RequestState<Nothing>()
    data object Idle : RequestState<Nothing>()
Is there a way to receive the actual type in the iOS module, without explicitly casting it from Any?