Type checking and assertion functions for all types but NaN.