Exactly. This is what LWJGL does too. It calls BufferChecks.checkDirect which throw an IllegalArgumentException before using one of those buffers.
I think It would make sense to add such conversions in api-opengl too. It should be quite straightforward for both.