don't know if this is a similar bug but this works...
# announcements
u
don't know if this is a similar bug but this works without saying the cast is unchecked
Copy code
fun num<T : Number> N(t Any) : Number{
    return t as T
}