Cache this shit so we don't have to do instanceof checks all the time.