Runtime type checks for basic types