code: public static TypedProperties toTypedProperties(Properties p) {
        if (p instanceof TypedProperties) return (TypedProperties) p;
        return new TypedProperties(p);
     }
docs: Factory method that converts a JDK {@link Properties} instance to an instance of TypedProperties, if needed.
  
  @param p properties to convert.
  @return A TypedProperties object.  Returns an empty TypedProperties instance if p is null.