Question: I have a list template in a MOSS List Template Gallery and I need to create a list using this template from a feature receiver. This sounds really easy but I cannot find a way of doing this.

SPWeb has a GetCatalog method that returns an SPList with 1 item - my template - but it is an SPListItem and I need an SPListTemplate. How can I 'convert' the item to the correct type? 

Thanks

Answer: 
You could do something like this with an Extension method.

```
Imports System.Runtime.CompilerServices

Module FontExtensions

<Extension()> Public Function ToSize(ByVal OriginalFont As Font, ByVal NewSize As Single) As Font

        Dim NewFont As Font

        NewFont = New Font(OriginalFont.FontFamily, NewSize, OriginalFont.Style)

        Return NewFont

    End Function

End Module

```

and then call it like this...

```
SomeObject.Font = Font.ToSize(12)

```

It's still creating a new font behind the scenes, but your application code is not cluttered with the creation process.
Make sure you use the constructor method that allows you to use the base font and pass in the new size you desire. This will save you some code from the other approaches.