Is it possible to limit a certain variable to only certain type?
For example, i have a class named AccurateStr. How can I make sure that the variable "as" is an instance of AccurateStr?
Similarly, how can I make sure a variable is a positive int, str etc without the if statement, if that's even possible.